package cn.taichoo.server.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import cn.taichoo.server.mapper.AppPackageRecordMapper;
import cn.taichoo.server.domain.AppPackageRecord;
import cn.taichoo.server.service.IAppPackageRecordService;

import javax.annotation.Resource;

/**
 * App打包历史记录Service业务层处理
 *
 * @author Wuzh
 * @date 2025-03-17
 */
@Service
public class AppPackageRecordServiceImpl extends ServiceImpl<AppPackageRecordMapper, AppPackageRecord> implements IAppPackageRecordService {

    @Resource
    private AppPackageRecordMapper appPackageRecordMapper;

    /**
     * 查询App打包历史记录
     *
     * @param id App打包历史记录主键
     * @return App打包历史记录
     */
    @Override
    public AppPackageRecord selectAppPackageRecordById(Long id) {
        return appPackageRecordMapper.selectAppPackageRecordById(id);
    }

    /**
     * 查询App打包历史记录列表
     *
     * @param appPackageRecord App打包历史记录
     * @return App打包历史记录
     */
    @Override
    public List<AppPackageRecord> selectAppPackageRecordList(AppPackageRecord appPackageRecord) {
        return appPackageRecordMapper.selectAppPackageRecordList(appPackageRecord);
    }
}
